package com.example.meeting.model.domain;

import org.springframework.stereotype.Component;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;

@Component
public class Subject implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long id;

    @NotBlank(message = "议题名称不能为空")
    private String name; //议题名称

    private Integer weight; //议题权重

    private Integer status; //议题状态

    private Meeting meeting; //议题对应的会议

    private List<Person> personList; // 议题对应的列席人员列表

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Meeting getMeeting() {
        return meeting;
    }

    public void setMeeting(Meeting meeting) {
        this.meeting = meeting;
    }

    public List<Person> getPersonList() {
        return personList;
    }

    public void setPersonList(List<Person> personList) {
        this.personList = personList;
    }

    @Override
    public String toString() {
        return "Subject{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", weight=" + weight +
                ", status=" + status +
                ", meeting=" + meeting +
                ", personList=" + personList +
                '}';
    }
}
